package com.ruoyi.system.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同对象 contract
 *
 * @author ruoyi
 * @date 2023-06-08
 */
public class Contract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同ID */
    private Long contractId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractNo;

    /** 签约产品 */
    @Excel(name = "签约产品")
    private String signProd;

    /** 签约公司 */
    @Excel(name = "签约公司")
    private String signCompany;

    /** 合同类型 */
    @Excel(name = "合同类型")
    private String contractType;

    /** 合同生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractBeginDate;

    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId()
    {
        return contractId;
    }
    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerName()
    {
        return customerName;
    }
    public void setContractNo(String contractNo)
    {
        this.contractNo = contractNo;
    }

    public String getContractNo()
    {
        return contractNo;
    }
    public void setSignProd(String signProd)
    {
        this.signProd = signProd;
    }

    public String getSignProd()
    {
        return signProd;
    }
    public void setSignCompany(String signCompany)
    {
        this.signCompany = signCompany;
    }

    public String getSignCompany()
    {
        return signCompany;
    }
    public void setContractType(String contractType)
    {
        this.contractType = contractType;
    }

    public String getContractType()
    {
        return contractType;
    }
    public void setContractBeginDate(Date contractBeginDate)
    {
        this.contractBeginDate = contractBeginDate;
    }

    public Date getContractBeginDate()
    {
        return contractBeginDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("contractId", getContractId())
                .append("customerName", getCustomerName())
                .append("contractNo", getContractNo())
                .append("signProd", getSignProd())
                .append("signCompany", getSignCompany())
                .append("contractType", getContractType())
                .append("contractBeginDate", getContractBeginDate())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}